home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
040a
/
dig13.zip
/
README
< prev
Wrap
Text File
|
1991-09-24
|
2KB
|
48 lines
DIG is a guy who amplifies and modifies sound files. I wrote it because I
was disappointed with the sound of digitized voices and music when played
with REMAC and REPLAY through the PC speaker. DIG will read regular 8-bit
digitized sound, and a) amplify it, and/or b) remove spikes from it in a way
you choose. DIG has also helped further my FORTRAN and C language education.
The Zip file DIG13.ZIP should contain the following files:
AND-NOW.M2 14232 91/02/08 Sample input sound file
AND-NOW2.M2 14232 91/09/24 Amplified sound file
DIG.EXE 42208 91/09/23 Compiled FORTRAN program
DIG.FOR 2141 91/09/23 FORTRAN source code
DIGC.C 2787 91/09/24 C source code
DIGC.EXE 25358 91/09/24 Compiled C program
plus this README file. The first two files are "before and after" examples
of a sound file which has been amplified by a factor of 2. Use REMAC with a
speed setting of 2 to play these files. The programs were compiled with
Microsoft FORTRAN 5.1 and Borland Turbo C 1.1.
USAGE:
dig infile outfile
If you forget the filenames, the FORTRAN version will ask for them, while the
C version will tell you to start over. The program will then prompt you for
volume factor, spike limit, and ask if you want an ASCII listing of the data
(careful: it's long!). The FORTRAN version took 16 seconds to amplify
"and-now" on my computer, while the C version took over 30 seconds. Does
anyone know why?
Some distortion is introduced if the amplified waveform exceeds the 128
half-amplitude limit. This involves clipping of the waveform, and should not
be noticeable to the ear.
Play with the source code as much as you wish, but I'd like to know about any
improvements you make or any comments you have. I can be found at
Comp-U-Ease (408-286-8332), or The Engineers' Club, (408-265-3353).
--Bill Weitze
Revision Notes:
1.0 (02-08-91): Initial release.
1.1 (04-16-91): Now reads input into a vector, which makes the program faster.
1.2 (06-10-91): Added smoothing (spike removal) and other improvements.
1.3 (09-24-91): Simplified code, adapted for MS Fortran 5.1, ported to C.